import java.util.Arrays;
import java.util.Comparator;
import java.util.PriorityQueue;

public class Test {

    public static void main(String[] args) {

        PriorityQueue<Integer> priorityQueue = new PriorityQueue<>(new Comparator<Integer>() {
            @Override
            public int compare(Integer o1, Integer o2) {
                return o2.compareTo(o1);
            }
        });

                int[] ret = new int[10];
        for (int i = 0; i < priorityQueue.size(); i++) {
        }
    }

    public static void main1(String[] args) {

        int[] array = {27,15,19,18,28,34,65,49,25,37};
        Heap heap = new Heap();
        heap.initHeap(array);
        heap.createHeap();

        System.out.println("插入元素");
//        heap.offer(80);

        System.out.println("======");

        System.out.println("删除元素");
        int val = heap.poll();
        System.out.println(val);

        System.out.println("=====");

    }

}
